// (C) Szymon Piechowicz, February 2012

#ifndef __BATTERY_H__
#define __BATTERY_H__


enum BatteryCharge
{
  BATTERY_CHARGE_GREEN,
  BATTERY_CHARGE_YELLOW,
  BATTERY_CHARGE_RED
};

typedef void (*battery_charge_callback)(enum BatteryCharge charge);


void battery_init(void);

// Charge indicator LEDs are operated by this module. You can supply NULL
// callback if you do not need to take further action.
void battery_start_measuring_charge(battery_charge_callback callback);
void battery_stop_measuring_charge(void);


#endif